<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>原生js判断数组</title>
</head>
<body>
  <script>
    function isiArray(arr){
      return Array.isArray(arr)
    }
    if (isiArray([123])) {
      console.log('是一个数组');
    } else{
      console.log('不是一个数组');
    }
  </script>
</body>
</html>